import { createBrowserRouter, Navigate } from "react-router-dom";
import App from "./App";
import Qrcode from "./pages/Qrcode";
import Content from "./pages/Content";

export default createBrowserRouter([
  {
    path: '/',
    element: <App />,
    children: [
      {
        path: "", element: <Navigate to="create" replace />
      },
      {
        path: '/create', element: <Qrcode />
      },
      {
        path: '/content', element: <Content />
      },
    ]
  }
])